how to create a simple calculator